package site.qjdb.pojo;

import java.util.Date;

/**
 * 	聊天子项
 * 
 * */
public class ChatItem {
	private Integer chatItemId; // 聊天子项id
	private Integer sendId; // 发送方
	private Integer receivedId; // 接收方
	private String content; // 聊天内容
	private Date time; // 发送时间
	private Integer isDel; // 是否删除，0：没有被删除，1：已被删除
	private String uuid; // 对应的聊天的uuid
	private Integer iid; // 若iid存在则orderItem存在
	private OrderItem orderItem; // 若为订单信息则该项存在，若为正常聊天信息则该项为null

	public ChatItem() {
	}

	public Integer getChatItemId() {
		return chatItemId;
	}

	public void setChatItemId(Integer chatItemId) {
		this.chatItemId = chatItemId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public OrderItem getOrderItem() {
		return orderItem;
	}

	public void setOrderItem(OrderItem orderItem) {
		this.orderItem = orderItem;
	}

	public Integer getIid() {
		return iid;
	}

	public void setIid(Integer iid) {
		this.iid = iid;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public Integer getSendId() {
		return sendId;
	}

	public void setSendId(Integer sendId) {
		this.sendId = sendId;
	}

	public Integer getReceivedId() {
		return receivedId;
	}

	public void setReceivedId(Integer receivedId) {
		this.receivedId = receivedId;
	}

	@Override
	public String toString() {
		return "ChatItem [chatItemId=" + chatItemId + ", sendId=" + sendId + ", receivedId=" + receivedId + ", content="
				+ content + ", time=" + time + ", isDel=" + isDel + ", uuid=" + uuid + ", iid=" + iid + ", orderItem="
				+ orderItem + "]";
	}

}
